{{left_sidebar_enabled,right_sidebar_enabled=False,True}}

{{extend 'layout.html'}}
<h3>{{=product.brandName}}</h3>
<h3>{{=product.productName}}</h3>

<table>
    <tr>
        <td>{{=A(IMG(_src=URL('getthumbnail', args=product.id),_class='productImage'),_href=product.pageLink,_target='blank')}}</td>
        <td>{{=DIV(SPAN(product.productType,_class="productInfoType"),SPAN(product.origPrice),SPAN("Sale Price: ",A(product.salePrice,_href=product.pageLink,_target="blank"),_class="salePriceValue"),SPAN("Discount: ", product.discount, "%"),SPAN("Taobao Price: ",A(product.taobaoPrice,_href=product.taobaoLink,_target="blank"),_class="taobaoPriceValue"),_class="productInfo")}}</td>
    </tr>
</table>

{{=form}}



{{block right_sidebar}}
{{=A(T("Return back"), _href=URL('index'), _class='button',
     _style='margin-top: 1em;')}}
{{=A(T("Update Thumbnail"), _href=URL('updateproductthumbnail',args=product.id), _class='button',
     _style='margin-top: 1em;')}}

<ul>
  <li>{{=A(T("Online examples"), _href=URL('examples','default','index'))}}</li>
  <li><a href="http://web2py.com">web2py.com</a></li>
  <li><a href="http://web2py.com/book">{{=T('Documentation')}}</a></li>
</ul>
{{end}}
